package com.lixin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 群聊消息表
 * </p>
 *
 * @author lixin
 * @since 2023-08-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class GroupChatMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 消息ID
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 群聊ID
     */
    private Integer groupId;

    /**
     * 发送者ID
     */
    private Integer senderId;

    /**
     * 消息内容
     */
    private String content;

    /**
     * 消息类型: 1-文本, 2-图片, 3-音频, 4-视频, ...
     */
    private Integer messageType;

    /**
     * 发送时间
     */
    private Date sendTime;


}
